package com.atguigu.yygh.hosp.entity;

import com.atguigu.yygh.model.hosp.BookingRule;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.List;

@NoArgsConstructor
@Data
@AllArgsConstructor
@ApiModel("医院信息")
@Document("Hospital")
public class Hospital {
    @JsonProperty("hoscode")
    @ApiModelProperty("医院编号")
    @Indexed(unique = true) //唯一索引
    private String hoscode;

    @ApiModelProperty("医院名称")
    @JsonProperty("hosname")
    @Indexed
    private String hosname;

    @ApiModelProperty("医院级别")
    @JsonProperty("hostype")
    private String hostype;

    @ApiModelProperty("省份")
    @JsonProperty("provinceCode")
    private String provinceCode;

    @ApiModelProperty("城市")
    @JsonProperty("cityCode")
    private String cityCode;

    @ApiModelProperty("区域")
    @JsonProperty("districtCode")
    private String districtCode;

    @ApiModelProperty("地址")
    @JsonProperty("address")
    private String address;


    @ApiModelProperty("简介")
    @JsonProperty("intro")
    private String intro;

    @ApiModelProperty("乘车路线")
    @JsonProperty("route")
    private String route;

    @ApiModelProperty("照片")
    @JsonProperty("logoData")
    private String logoData;

    @ApiModelProperty("预约信息")
    @JsonProperty("bookingRule")
    private BookingRule BookingRule;


}
